package com.ruoyi.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * 对象存储配置实体类
 */
@Data
@TableName("storage_config")
public class StorageConfig {

    @TableId(type = IdType.AUTO)
    private Long id;


    @TableField("storage_type")
    private String storageType;

    @TableField("endpoint")
    private String endpoint;


    @TableField("access_key")
    private String accessKey;


    @TableField("secret_key")
    private String secretKey;


    @TableField("bucket_name")
    private String bucketName;

    @TableField("domain")
    private String domain;

    @TableField("region")
    private String region;

    @TableField("is_default")
    private Integer isDefault;

    @TableField("status")
    private Integer status;

    @TableField(value = "create_time", fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
